package com.qkm.xinguan.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 支付表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-12-27 13:50:41
 */
@Data
@TableName("trade")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "支付订单对象", description = "支付订单表")
public class Trade implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单成功id
	 */
	@TableId(value = "id")
	private Long id;
	/**
	 * 房屋id
	 */
	@ApiModelProperty(value = "房屋id")
	private Integer houseId;
	/**
	 * 房屋消息
	 */
	@ApiModelProperty(value = "房屋消息")
	private String houseName;
	/**
	 * 房东id
	 */
	@ApiModelProperty(value = "房东id")
	private Integer userId;
	/**
	 *房东手机
	 */
	@ApiModelProperty(value = "房东手机")
	private String userPhone;
	/**
	 *租期
	 */
	@ApiModelProperty(value = "租期")
	private Integer leaseTerm;
	/**
	 *价格
	 */
	@ApiModelProperty(value = "价格")
	private Integer price;
	/**
	 * 支付方式
	 */
	@ApiModelProperty(value = "支付方式")
	private String payMethod;
	/**
	 * 游客id
	 */
	@ApiModelProperty(value = "游客id")
	private Integer touristId;
	/**
	 * 游客姓名
	 */
	@ApiModelProperty(value = "游客姓名")
	private String touristName;
	/**
	 * 游客手机号
	 */
	@ApiModelProperty(value = "游客手机号")
	private String touristPhone;
	/**
	 * 订单创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 逻辑删除
	 */
	@ApiModelProperty(value = "逻辑删除")
	@TableLogic
	private Integer deleted;

}
